package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by DK on 16/10/8.
 * 礼包卡卷
 */
@Entity
@Table(name = "gift_packet_coupons")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MerchantGiftPacketCoupon extends IDEntityMall {

    /** 卡卷ID */
    @Column(columnDefinition = "bigint comment '卡卷ID'")
    private Long couponId;

    /** 礼包ID */
    @Column(columnDefinition = "bigint comment '礼包ID'")
    private Long packetId;

    /** 卡卷所属商家ID */
    @Column(columnDefinition = "bigint comment '产品所属商家ID'")
    private Long merchantId;

    @Column(columnDefinition = "bigint comment '使用数量'")
    private Long useNumber;

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getPacketId() {
        return packetId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getUseNumber() {
        return useNumber;
    }

    public void setUseNumber(Long useNumber) {
        this.useNumber = useNumber;
    }

    @Override
    public String toString() {
        return "MerchantGiftPacketCoupon{" +
                "couponId=" + couponId +
                ", id=" + id +
                ", packetId=" + packetId +
                ", dateCreated=" + dateCreated +
                ", merchantId=" + merchantId +
                ", lastUpdated=" + lastUpdated +
                ", useNumber=" + useNumber +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
